<?php
if (!(defined('IN_IA')))
{
    exit('Access Denied');
}
/**
 * User: 邓志锋 <280160522@qq.com> <http://www.diygw.com>
 * Date: 2018-07-28
 * Time: 下午 6:06
 */
class Login_Diygwcom extends DiygwcomAction
{
    public function index()
    {
        echo "true";
    }


    public function register()
    {
        echo "true";
    }

    public function check()
    {
         global $_GPC, $_W;
        $dashboardid = safe_gpc_int($_GPC["dashboardid"]);
        setcookie('uid'.$dashboardid, DiygwcomUtil::create_guid(), time() + (3600 * 24 * 365));
        echo "1";
    }
}